package com.trhui.mallbook.client;

import cn.iocoder.yudao.module.pay.framework.impl.mallbook.domain.CompleteNotifyResponse;
import com.trhui.mallbook.domain.common.ApiRequest;
import com.trhui.mallbook.domain.common.BaseResponse;
import com.trhui.mallbook.domain.request.hf.HfCompleteRequest;
import com.trhui.mallbook.enums.ChannelTypeEnum;
import com.trhui.mallbook.enums.ServerCodeEnum;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/07/24
 */
public class CustomCompleteClient extends CompleteClient {

    public static BaseResponse<CompleteNotifyResponse> hfCompleteV2(HfCompleteRequest request) {
        ApiRequest apiRequest = (new ApiRequest.ApiRequestBuild()).merOrderId(request.getMerOrderId()).merchantNo(request.getMerchantNo()).params(request).serverCode(ServerCodeEnum.COMPLETE).channelType(ChannelTypeEnum.HF).build();
        return post(apiRequest, CompleteNotifyResponse.class);
    }

}
